.class public Lcom/a0soft/gphone/a/a;
.super Ljava/lang/Object;
.source "aSysUtil.java"


# static fields
.field private static a:Z

.field private static b:F

.field private static c:F

.field private static d:I

.field private static e:Z

.field private static f:I

.field private static final g:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    const/high16 v0, 0x3f80

    .line 18
    sput v0, Lcom/a0soft/gphone/a/a;->b:F

    .line 19
    sput v0, Lcom/a0soft/gphone/a/a;->c:F

    .line 20
    const/16 v0, 0xa0

    sput v0, Lcom/a0soft/gphone/a/a;->d:I

    .line 27
    const/4 v0, -0x1

    sput v0, Lcom/a0soft/gphone/a/a;->f:I

    .line 32
    const-class v0, Lcom/a0soft/gphone/a/a;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/a0soft/gphone/a/a;->g:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 16
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static final a()F
    .locals 3

    .prologue
    const/high16 v2, 0x4260

    .line 129
    sget v0, Lcom/a0soft/gphone/a/a;->b:F

    const/high16 v1, 0x3f80

    cmpl-float v0, v0, v1

    if-nez v0, :cond_0

    move v0, v2

    .line 131
    :goto_0
    return v0

    :cond_0
    sget v0, Lcom/a0soft/gphone/a/a;->b:F

    mul-float/2addr v0, v2

    goto :goto_0
.end method

.method public static final a(F)F
    .locals 2
    .parameter

    .prologue
    .line 105
    sget v0, Lcom/a0soft/gphone/a/a;->b:F

    const/high16 v1, 0x3f80

    cmpl-float v0, v0, v1

    if-nez v0, :cond_0

    move v0, p0

    .line 107
    :goto_0
    return v0

    :cond_0
    sget v0, Lcom/a0soft/gphone/a/a;->b:F

    mul-float/2addr v0, p0

    goto :goto_0
.end method

.method private static a(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;)I
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 234
    :try_start_0
    invoke-virtual {p0, p2}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object v0

    .line 235
    invoke-virtual {v0, p1}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/Integer;

    invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
    :try_end_0
    .catch Ljava/lang/NoSuchFieldException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    move-result v0

    .line 239
    :goto_0
    return v0

    .line 237
    :catch_0
    move-exception v0

    const/high16 v0, -0x8000

    goto :goto_0

    .line 239
    :catch_1
    move-exception v0

    const v0, -0x7fffffff

    goto :goto_0
.end method

.method private static a(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/String;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 247
    :try_start_0
    invoke-virtual {p0, p1}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object v0

    .line 248
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/NoSuchFieldException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    move-object v0, p0

    .line 252
    :goto_0
    return-object v0

    .line 250
    :catch_0
    move-exception v0

    const-string v0, "(unavailable)"

    goto :goto_0

    .line 252
    :catch_1
    move-exception v0

    const-string v0, "(error)"

    goto :goto_0
.end method

.method public static final a(Landroid/content/Context;Landroid/graphics/drawable/Drawable;)V
    .locals 6
    .parameter
    .parameter

    .prologue
    const/4 v5, 0x1

    const/4 v4, 0x4

    .line 37
    invoke-static {}, Lcom/a0soft/gphone/a/a;->b()I

    move-result v0

    .line 39
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    .line 40
    iget v2, v1, Landroid/util/DisplayMetrics;->density:F

    sput v2, Lcom/a0soft/gphone/a/a;->b:F

    .line 41
    iget v2, v1, Landroid/util/DisplayMetrics;->scaledDensity:F

    sput v2, Lcom/a0soft/gphone/a/a;->c:F

    .line 42
    if-lt v0, v4, :cond_0

    .line 43
    const-class v2, Landroid/util/DisplayMetrics;

    const-string v3, "densityDpi"

    invoke-static {v2, v1, v3}, Lcom/a0soft/gphone/a/a;->a(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;)I

    move-result v1

    sput v1, Lcom/a0soft/gphone/a/a;->d:I

    .line 65
    :cond_0
    if-ne v0, v4, :cond_1

    sget v0, Lcom/a0soft/gphone/a/a;->b:F

    const/high16 v1, 0x3f80

    cmpl-float v0, v0, v1

    if-eqz v0, :cond_1

    .line 66
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    .line 67
    check-cast p1, Landroid/graphics/drawable/NinePatchDrawable;

    invoke-virtual {p1, v0}, Landroid/graphics/drawable/NinePatchDrawable;->getPadding(Landroid/graphics/Rect;)Z

    .line 71
    iget v0, v0, Landroid/graphics/Rect;->right:I

    if-ne v0, v4, :cond_2

    .line 72
    sput-boolean v5, Lcom/a0soft/gphone/a/a;->e:Z

    .line 83
    :cond_1
    :goto_0
    sput-boolean v5, Lcom/a0soft/gphone/a/a;->a:Z

    .line 84
    return-void

    .line 75
    :cond_2
    const/4 v0, 0x0

    sput-boolean v0, Lcom/a0soft/gphone/a/a;->e:Z

    goto :goto_0
.end method

.method public static final b(F)F
    .locals 2
    .parameter

    .prologue
    .line 113
    sget v0, Lcom/a0soft/gphone/a/a;->b:F

    const/high16 v1, 0x3f80

    cmpl-float v0, v0, v1

    if-nez v0, :cond_0

    move v0, p0

    .line 115
    :goto_0
    return v0

    :cond_0
    sget v0, Lcom/a0soft/gphone/a/a;->b:F

    div-float v0, p0, v0

    goto :goto_0
.end method

.method public static final b()I
    .locals 3

    .prologue
    .line 211
    sget v0, Lcom/a0soft/gphone/a/a;->f:I

    if-ltz v0, :cond_0

    .line 212
    sget v0, Lcom/a0soft/gphone/a/a;->f:I

    .line 227
    :goto_0
    return v0

    .line 214
    :cond_0
    const-class v0, Landroid/os/Build$VERSION;

    const/4 v1, 0x0

    const-string v2, "SDK_INT"

    invoke-static {v0, v1, v2}, Lcom/a0soft/gphone/a/a;->a(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;)I

    move-result v0

    .line 215
    if-gtz v0, :cond_1

    .line 217
    :try_start_0
    const-class v0, Landroid/os/Build$VERSION;

    const-string v1, "SDK"

    invoke-static {v0, v1}, Lcom/a0soft/gphone/a/a;->a(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    .line 226
    :cond_1
    :goto_1
    sput v0, Lcom/a0soft/gphone/a/a;->f:I

    goto :goto_0

    .line 219
    :catch_0
    move-exception v0

    const/4 v0, 0x0

    goto :goto_1
.end method
